package com.szrt.javaweb.student;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * 前台怎么访问我们这个方法   /user.do?method=hello
 * 	http://localhost:8080/mvn-springmvc-01-1609/student/hello
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/student")
public class StudentController {
	
	@RequestMapping("/hello2")
	public String hello(){
		System.out.println("进入hello方法...");
		// /pages/hello.jsp
		return  "hello";
	}

}
